import { openBuildService } from '../../helper/service'

const settings = {
    /*指标管理*/
    addIndicatorAPI: {
        url: "/adminc/v1/config_manage/t_index/create",
        method: 'post',
    },
    updateIndicatorAPI: {
        url: "/adminc/v1/config_manage/t_index/update",
        method: 'post',
    },
    getIndicatorTableListAPI: {
        url: "/adminc/v1/config_manage/t_index/index_list",
        method: 'post',
    },
    deleteIndicatorAPI: {
        url: "/adminc/v1/config_manage/t_index/delete",
        method: 'post',
    },
    getDetailIndicatorAPI: {
        url: "/adminc/v1/config_manage/t_index/detail",
        method: 'post',
    },
    /* 指标含义模块*/

    getIndiMeanListAPI: {
        url: "/adminc/v1/config_manage/t_index_mean/im_list",
        method: 'post',
    },
    addIndiMeanListAPI: {
        url: '/adminc/v1/config_manage/t_index_mean/create',
        method: 'post',
    },
    updateIndiMeanListAPI: {
        url: '/adminc/v1/config_manage/t_index_mean/update',
        method: 'post',
    },
    deleteIndiMeanListAPI: {
        url: '/adminc/v1/config_manage/t_index_mean/delete',
        method: 'post',
    },
    /*查看指标模块*/
    getIndiDataTableListAPI: {
        url: '/adminc/v1/config_manage/t_index_data/id_list',
        method: 'post',
    },
    exportIndiDataTableListAPI: {
        url: '/adminc/v1/config_manage/t_index_data/export_id_list',
        method: 'post',
        responseType: 'blob'
    },
    saveIndiDataTableListAPI: {
        url: '/adminc/v1/config_manage/t_index_data/save',
        method: 'post',
    },
    deleteIndiDataTableListAPI: {
        url: '/adminc/v1/config_manage/t_index_data/delete',
        method: 'post',
    },
}
export default openBuildService(settings)